package ct.consumer.bean;

import ct.common.api.Column;
import ct.common.api.Rowkey;
import ct.common.api.TableRef;

/**
 * @Author Jeremy Zheng
 * @Date 2021/2/23 22:40
 * @Version 1.0
 * 通话日志
 */
@TableRef("ct:callLog")
public class CallLog {
    @Rowkey
    private String rowkey;
    @Column(family = "caller")
    private String call1;
    @Column(family = "caller")
    private String call2;
    @Column(family = "caller")
    private String callTime;
    @Column(family = "caller")
    private String duration;
    @Column(family = "caller")
    private String flg="1";

    public CallLog(){}

    public CallLog(String data){
        String[] values=data.split("\t");
        this.call1=values[0];
        this.call2=values[1];
        this.callTime=values[2];
        this.duration=values[3];
    }

    public String getRowkey() {
        return rowkey;
    }

    public void setRowkey(String rowkey) {
        this.rowkey = rowkey;
    }

    public String getCall1() {
        return call1;
    }

    public void setCall1(String call1) {
        this.call1 = call1;
    }

    public String getCall2() {
        return call2;
    }

    public void setCall2(String call2) {
        this.call2 = call2;
    }

    public String getCallTime() {
        return callTime;
    }

    public void setCallTime(String callTime) {
        this.callTime = callTime;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }
}
